import Http from '../../http';

export const getGetTree = function() {
    return Http.get('/DocCat/GetTree') 
}
export const getList = function() {
    return Http.get('/DocCat/index') 
}
export const getEdit = function(id:number) {
    return Http.get('/DocCat/AddOrEdit',{id:id}) 
}
export const postAdd = function(from:any) {
    return Http.post('/DocCat/Create',from) 
}
export const putEdit = function(from:any) {
    return Http.put('/DocCat/Edit',from) 
}
export const delOne = function(id:number) {
    return Http.delete('/DocCat/Delete',{id:id}) 
}
